/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.system.dto;


import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 平台
 *
 * @since 2022-11-23 15:15:20
 */
@Data
public class SystemPlatformAddDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 平台名称
	 */
	@NotBlank(message = "参数异常，name为空")
	@Size(max = 100, message = "参数异常，name最大长度为100")
	private String name;

	/**
	 * API真实环境接口路径
	 */
	@NotBlank(message = "参数异常，url为空")
	@Size(max = 200, message = "参数异常，url最大长度为200")
	private String url;

	/**
	 * API测试环境接口路径
	 */
	@NotBlank(message = "参数异常，testUrl为空")
	@Size(max = 200, message = "参数异常，testUrl最大长度为200")
	private String testUrl;
}
